package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.business.firetraining;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class FiretrainingService extends BaseService {

	private static final Logger logger = LoggerFactory.getLogger(FiretrainingService.class);
	

	/**
	 * 消防培训列表
	 * @param
	 * @return
	 */
	public RespEntity firetrainingListPage(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firetrainingListPage","firetraining");
	}

	/**
	 * 消防培训详情
	 * @param
	 * @return
	 */
	public RespEntity firetrainingDetail(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firetrainingDetail","firetraining");
	}

	/**
	 * 消防培训新增
	 * @param
	 * @return
	 */
	public RespEntity firetrainingAdd(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firetrainingAdd","firetraining");
	}

	/**
	 * 消防培训修改
	 * @param
	 * @return
	 */
	public RespEntity firetrainingUpdate(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firetrainingUpdate","firetraining");
	}

	/**
	 * 消防培训删除
	 * @param
	 * @return
	 */
	public RespEntity firetrainingDelete(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firetrainingDelete","firetraining");
	}

}
